package com.turing.draw.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.turing.common.response.ResponseVO;
import com.turing.draw.model.domain.DrawTask;
import com.turing.draw.model.vo.UploadVo;
import com.turing.draw.vo.out.DrawTaskVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @Description $!{table.comment} 服务类接口
 * @Author lcy
 * @Date 2021-10-25
 */
public interface DrawTaskService extends IService<DrawTask> {

    UploadVo uploadFileAndCreateTask(MultipartFile[] files, String templateId, Integer needMerge, int pageNumber) throws IOException;

    void checkFileName(MultipartFile[] files);

    DrawTask getTaskRecord(String taskSn);

    DrawTaskVO getTaskFilePath(String taskSn);

    boolean updateTaskByStatus(String parentTaskSn, Integer status);

    String getTaskTemplate(String taskSn);

    Boolean removeBatch(List<String> taskSns);

}
